﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Empires.BLL.Core.IService;
using Empires.BLL.Core.Implement;
using Empires.CRL.DataContract;

namespace Empires.PL.ServiceClient
{
    public static class CompanyDownloadServiceClient
    {
        public static string GetDownloadFileURL(int id, string copname)
        {
            ICompanyDownloadService service = new CompanyDownloadService();
            return service.GetDownloadFileName(id, copname);
        }
        public static List<DefaultDataPack> GetDownloadFiles(string copname, int type, int page, int take)
        {
            ICompanyDownloadService service = new CompanyDownloadService();
            return service.GetDownloadFiles(copname, type, page, take);
        }

        public static int DeleteDownloadFile(string copname, string fid)
        {
            ICompanyDownloadService service = new CompanyDownloadService();
            return service.DeleteDownloadFile(copname, fid);
        }

        public static bool DownloadAddItem(string id, DownloadDataPack datapack)
        {
            ICompanyDownloadService service = new CompanyDownloadService();
            return service.DownloadAddItem(id, datapack);
        }
    }
}
